<%@ page contentType="text/html; charset=utf-8" 
pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="m" class="untiring07.j2ee.basic.projectv5.model.MemberVO" />
<jsp:setProperty property="uid" name="m" value="${sessionScope.uid }"/>
${m.uid }
<jsp:useBean id="mdao" class="untiring07.j2ee.basic.projectv5.dao.MemberDAO"/>
<c:set var="m" value="${mdao.readMember(m)}"/>
[${m.uid }]

<style type="text/css">
	#content div{ width: 355px; margin: 0 auto; }
</style>

<div id="content">
<c:if test="${not empty sessionScope.uid }"><%-- 로그인한 상태라면 --%>
	<div>
	<h2>회원정보</h2>
	<p>회원번호 : ${m.mno}</p>
	<p>아이디 : ${m.uid}</p>
	<p>비밀번호 : ${m.pwd}</p>
	<p>이름 : ${m.name}</p>
	<p>가입일 : ${m.rdate}</p>
	</div>
</c:if>	
<c:if test="${empty sessionScope.uid }">
	<script>location.href='?action=login';</script>
</c:if>
	
</div><!-- // content -->
